/**
 * @Copyright ®2015 Sinosoft Co. Ltd. All rights reserved.
 * 项目名称 : 网站服务平台
 * 创建日期 : 2016-11-14
 * 修改历史 :
 * 1. [2016-11-14]创建文件 by chenxin
 */
package com.sinosoft.sinopay.paytrade.entry.facade;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.sinosoft.sinocloud.platform.base.SinoBaseService;
import com.sinosoft.sinopay.paytrade.biz.service.PaymentTradeCoreService;
import com.sinosoft.sinopay.paytrade.dto.PayTradeNotifyRecordDTO;
import com.sinosoft.sinopay.paytrade.dto.PaymentConfirmDTO;
import com.sinosoft.sinopay.paytrade.dto.PaymentRequestDTO;
import com.sinosoft.sinopay.paytrade.dto.PaymentTradeBatchDTO;
import com.sinosoft.sinopay.paytrade.dto.PaymentTradeReqDTO;
import com.sinosoft.sinopay.paytrade.dto.UserAuthConfInfo;
import com.sinosoft.sinopay.paytrade.facade.PaymentTradeFacadeService;

/**
 * 【支付交易微服务接口实现类】
 * @author chenxin
 * @date 2016-11-14 下午4:49 
 * @version V1.0
 */
@Service
public class PaymentTradeFacadeServiceImpl extends SinoBaseService implements PaymentTradeFacadeService {
    @Autowired
    private PaymentTradeCoreService paymentTradeCoreService;
    @Override
    public UserAuthConfInfo comfirmTradeRequest(String PayNo) {
    	return paymentTradeCoreService.comfirmNewPaymentRequest(PayNo);
    }
    
    @Override
    public String newPayTrade(PaymentRequestDTO cPayReqInfo) {
        return paymentTradeCoreService.addNewPayTrade(cPayReqInfo);
    }

    @Override
    public int modifyTradeOrderStatus(PaymentConfirmDTO cPayConfirmInfo) {
    	return paymentTradeCoreService.modifyTradeOrderStatus(cPayConfirmInfo);
    }

	@Override
	public int addPaymentInfo(PaymentTradeReqDTO cPaymentTradeReqDTO) {
		return paymentTradeCoreService.addPaymentInfo(cPaymentTradeReqDTO);
	}

	@Override
	public int modifyPaymentInfo(PaymentTradeReqDTO cPaymentTradeReqDTO) {
		return paymentTradeCoreService.modifyPaymentInfo(cPaymentTradeReqDTO);
	}
	
	@Override
	public String addTransOrderBatchInfo(PaymentTradeReqDTO cPaymentTradeReqDTO) {
		return paymentTradeCoreService.addTransOrderBatchInfo(cPaymentTradeReqDTO);
	}

	@Override
	public int modifyTransOrderBatchInfo(
			PaymentTradeReqDTO cPaymentTradeReqDTO) {
		return paymentTradeCoreService.modifyTransOrderBatchInfo(cPaymentTradeReqDTO);
	}

	@Override
	public int addBulkPaymentInfo(PaymentTradeBatchDTO cPaymentTradeBatchDTO) {
		return paymentTradeCoreService.addBulkPaymentInfo(cPaymentTradeBatchDTO);
	}

	@Override
	public int modifyBatchPaymentInfo(PaymentTradeBatchDTO cPaymentTradeBatchDTO) {
		return paymentTradeCoreService.modifyBatchPaymentInfo(cPaymentTradeBatchDTO);
	}

	@Override
	public int addOfferRecordData(PaymentTradeBatchDTO cPaymentTradeBatchDTO) {
		return paymentTradeCoreService.addOfferRecordData(cPaymentTradeBatchDTO);
	}

	@Override
	public int modifyOfferRecordData(PaymentTradeBatchDTO cPaymentTradeBatchDTO) {
		return paymentTradeCoreService.modifyOfferRecordData(cPaymentTradeBatchDTO);
	}

	@Override
	public int addTransePayRelate(PaymentTradeReqDTO cPaymentTradeReqDTO) {
		return paymentTradeCoreService.addTransePayRelate(cPaymentTradeReqDTO);
	}

	@Override
	public int modifyTransePayRelate(PaymentTradeReqDTO cPaymentTradeReqDTO) {
		return paymentTradeCoreService.modifyTransePayRelate(cPaymentTradeReqDTO);
	}

	@Override
	public int addPayTradeNotifyRecord(
			PayTradeNotifyRecordDTO cPayTradeNotifyRecordDTO) {
		return paymentTradeCoreService.addPayTradeNotifyRecord(cPayTradeNotifyRecordDTO);
	}

	@Override
	public int modifyPayTradeNotifyRecord(
			PayTradeNotifyRecordDTO cPayTradeNotifyRecordDTO) {
		return paymentTradeCoreService.modifyPayTradeNotifyRecord(cPayTradeNotifyRecordDTO);
	}

	@Override
	public int addPayTradeNotifyRecordLog(
			PayTradeNotifyRecordDTO cPayTradeNotifyRecordDTO) {
		return paymentTradeCoreService.addPayTradeNotifyRecordLog(cPayTradeNotifyRecordDTO);
	}

    @Override
    public int modifyPaymentInfoForBatch(PaymentTradeReqDTO cPaymentTradeReqDTO) {
        return paymentTradeCoreService.modifyPaymentInfoForBatch(cPaymentTradeReqDTO);
    }
}
